package com.ruoyi.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.blog.domain.BlogLabel;
import com.ruoyi.blog.domain.vo.BlogArticleVo;
import com.ruoyi.blog.domain.vo.BlogLabelVo;
import com.ruoyi.blog.domain.bo.BlogLabelBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 博客标签Service接口
 *
 * @author ruoyi
 * @date 2023-10-01
 */
public interface IBlogLabelService extends IService<BlogLabel> {

    /**
     * 查询博客标签
     */
    BlogLabelVo queryById(Long labelId);

    /**
     * 查询博客标签列表
     */
    TableDataInfo<BlogLabelVo> queryPageList(BlogLabelBo bo, PageQuery pageQuery);

    /**
     * 获取文章标签
     */
    List<BlogLabelVo> getArticleLabels(BlogArticleVo n);

    /**
     * 查询博客标签列表
     */
    List<BlogLabelVo> queryList(BlogLabelBo bo);

    /**
     * 新增博客标签
     */
    Boolean insertByBo(BlogLabelBo bo);

    /**
     * 修改博客标签
     */
    Boolean updateByBo(BlogLabelBo bo);

    /**
     * 校验并批量删除博客标签信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
